﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Services.Domain;
using ARR.Entities;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "AttributesService" in both code and config file together.
    public class CommentsService : ICommentsService
    {
        public List<Comment> GetAll()
        {
            return CommentsDomain.GetAll();
        }

        public List<Comment> GetByType(string type)
        {
            return CommentsDomain.GetByType(type);
        }

        public void Save(List<Comment> comments)
        {
            CommentsDomain.Save(comments);
        }

        public List<GeneralComment> GetAllGeneralComments()
        {
            return CommentsDomain.GetAllGeneralComments();
        }

        public void SaveGeneralComments(List<GeneralComment> comments)
        {
            CommentsDomain.SaveGeneralComments(comments);
        }
    }
}
